package it.ilgrv.demiurgo.persistence;

import it.ilgrv.demiurgo.persistence.tables.character.Character;
import it.ilgrv.demiurgo.persistence.tables.skill.Teacher;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the characterSubscription database table.
 * 
 */
@Entity
public class CharacterSubscription extends it.ilgrv.demiurgo.persistence.GenericTable implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int id;

	private String accessLevel;

	private int version;

	//bi-directional many-to-one association to Teacher
    @ManyToOne
	private Teacher teacher;

	//bi-directional many-to-one association to Character
    @ManyToOne
	private Character character;

    public CharacterSubscription() {
    }

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAccessLevel() {
		return this.accessLevel;
	}

	public void setAccessLevel(String accessLevel) {
		this.accessLevel = accessLevel;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	
	public Character getCharacter() {
		return this.character;
	}

	public void setCharacter(Character character) {
		this.character = character;
	}
	
}